//
//  HWEssenceTool.h
//  JWC
//
//  Created by lanou on 16/4/11.
//  Copyright © 2016年 陈帅. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HWEssenceTool : NSObject

// 下拉刷新
- (void)getDataWithType:(TopicType)type style:(NSString *)style block:(void (^) (id json, NSInteger param))block;

// 上拉加载
- (void)getDataWithNp:(NSInteger)np type:(TopicType)type style:(NSString *)style block:(void (^) (id json, NSInteger param))block;

// 下拉刷新评论
- (void)getCommentsWithID:(NSString *)ID block:(void (^) (id json, NSString *param))block;

// 上拉加载更多评论
- (void)getCommentsWithID:(NSString *)ID page:(NSInteger)page lastcid:(NSString *)lastcid block:(void (^)(id json, NSString *total))block;

// 加载表头
- (void)getHeadWithID:(NSString *)ID block:(void (^) (id json))block;

#pragma mark --- 订阅详情 ---
// 刷新
- (void)getDetailDataWithID:(NSString *)ID block:(void (^) (id json, NSInteger np))block;

// 上拉加载
- (void)getDetailDataWithID:(NSString *)ID np:(NSInteger)np block:(void (^) (id json, NSInteger np))block;

#pragma mark --- 推荐订阅详情 ---
// 刷新
- (void)getTakeDetailDataWithID:(NSInteger)ID type:(NSString *)type block:(void (^) (id json, NSInteger np))block;

// 上拉加载
- (void)getTakeDetailDataWithID:(NSInteger)ID type:(NSString *)type np:(NSInteger)np block:(void (^)(id, NSInteger))block;

#pragma mark --- 穿越 ---
- (void)getThroughDataWithType:(TopicType)type block:(void(^)(id json))block;

@end













